package com.puyu.xliangyu.security.reading.rpc.service;

import com.puyu.xliangyu.security.reading.biz.BooksBiz;
import com.puyu.xliangyu.security.reading.entity.Books;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by ace on 2017/9/12.
 */
@Service
public class BooksService {
    @Autowired
    private BooksBiz booksBiz;

    private BCryptPasswordEncoder encoder = new BCryptPasswordEncoder(12);

    public List<Books> selectBooksListAll() {
        List<Books> books = booksBiz.selectListAll();
        return books;
    }

}
